<!DOCTYPE html>
<html>
  <head>
    <script>
      function runTest() {
        if (window.testRunner)
          testRunner.waitUntilDone();

        window.resizeTo(400, 300);

        if (window.testRunner)
          window.setTimeout(function () { testRunner.notifyDone(); }, 0);
      }
    </script>
  </head>
  <body onload="runTest();">
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
      <rect width="40%" height="60%" fill="green"/>
    </svg>
  </body>
</html>
